import {WeaTools} from 'ecCom'

export const getSelectType = params => {
	return WeaTools.callApi('/api/workplan/type/getSelectType', 'POST', params);
}

export const getBaseData = params => {
	return WeaTools.callApi('/api/workplan/calendar/getBaseData', 'POST', params);
}

export const MyCalendar = params => {
	return WeaTools.callApi('/api/workplan/calendar/MyCalendar', 'POST', params);
}
export const AllCalendar = params => {
	return WeaTools.callApi('/api/workplan/calendar/AllCalendar', 'POST', params);
}


export const editCalendarItemQuick = params => {
	return WeaTools.callApi('/api/workplan/calendar/editCalendarItemQuick', 'POST', params);
}

export const setViewType = params => {
	return WeaTools.callApi('/api/workplan/calendar/setViewType', 'POST', params);
}


export const getShareList = params => {
	return WeaTools.callApi('/api/workplan/share/getShareList', 'POST', params);
}

export const doExcelImport = params => {
	return WeaTools.callApi('/api/workplan/calendar/importExcel', 'POST', params);
}

export const addExcelFileid = params => {
	return WeaTools.callApi('/api/workplan/calendar/addExcelFileid', 'POST', params);
}

export const getCalendarData = params => {
	return WeaTools.callApi('/api/workplan/calendar/getCalendarData', 'POST', params);
}

export const getAttentionData = params => {
	return WeaTools.callApi('/api/workplan/calendar/getAttentionData', 'POST', params);
}

export const addAttention = params => {
	return WeaTools.callApi('/api/workplan/calendar/addAttention', 'POST', params);
}

export const delAttention = params => {
	return WeaTools.callApi('/api/workplan/calendar/delAttention', 'POST', params);
}

// 日程预览表选择查看指定范围人员的日程
export const selectHrmType = params => {
	return WeaTools.callApi('/api/workplan/calendar/delAttention', 'POST', params);
}
// 更新关注者
export const updateAttention = params => {
	return WeaTools.callApi('/api/workplan/calendar/updateAttention', 'POST', params);
}
// exchange同步
export const syncEwsToWP = params => {
	return WeaTools.callApi('/api/workplan/calendar/syncEwsToWP', 'POST', params);
}
//获取系统布局信息
export const getLayoutType = params => {
	return WeaTools.callApi('/api/portal/themeConfig/getThemeConfig', 'GET', params);
}
